home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / bsrc_p1.arc / B_HELP.C < prev    next >
Encoding:
C/C++ Source or Header  |  1988-11-30  |  5.2 KB  |  109 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software <no-Inc>                   */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          No-Cost<no-tm> Software.                       */
  7. /*        \ 1011 /                                                          */
  8. /*         ------            KopyRong (K) 1987.  ALL RIGHTS REVERSED.       */
  9. /*                                                                          */
  10. /*                                                                          */
  11. /*               This module was written by Vince Perriello                 */
  12. /*                                                                          */
  13. /*                                                                          */
  14. /*                       BinkleyTerm "HELP" Module                          */
  15. /*                                                                          */
  16. /*                                                                          */
  17. /*   This  software  package is being distributed WITH FULL SOURCE CODE     */
  18. /*   with the  following  conditions:    1)  If  anything awful happens     */
  19. /*   because  you  use    it   (or  don't  use  it),  you  accept  full     */
  20. /*   responsibility;  2) you  don't start making tons of voice calls to     */
  21. /*   the authors to complain or  make  suggestions  about enhancements,     */
  22. /*   useful or otherwise;  3) you  do not reuse this code in commercial     */
  23. /*   products without specific permission to do so  from  the  authors;     */
  24. /*   4) If you find any problems you send  fixes  to  the  authors  for     */
  25. /*   inclusion  in  updates;    5) You find some way  to  express  your     */
  26. /*   appreciation  for  this  method of distribution, either by writing     */
  27. /*   code or  application  notes,  or  just sending along a "Thank You"     */
  28. /*   message.                                                               */
  29. /*                                                                          */
  30. /*   There is  copyrighted  code  in  this product.  We either wrote it     */
  31. /*   ourselves or got  permission  to use it.  Please don't force us to     */
  32. /*   pay a lawyer --  have some respect for our motives and don't abuse     */
  33. /*   this "license".                                                        */
  34. /*                                                                          */
  35. /*                                                                          */
  36. /*--------------------------------------------------------------------------*/
  37.  
  38. #include <stdio.h>
  39. #include "com.h"
  40.  
  41. extern char *BBSreader;
  42.  
  43. static char *mhelp[] = {
  44.    "\033[H\033[2J",
  45.    "You now have BinkleyTerm in DUMB TERMINAL mode.\r\n",
  46.    "In DUMB TERMINAL mode the following special keys are enabled:\r\n\r\n",
  47.    "     Alt-F10   Display this help screen.\r\n",
  48.    "     Alt-Y     Ya-hooey! Initiate a netmail session with host\r\n",
  49.    "     Alt-U     Shift into UNATTENDED MAILER mode\r\n",
  50.    "     Alt-M     Initiate a mail session to any node in list\r\n",
  51.    "     Alt-X     Exit BinkleyTerm, return to DOS (DTR left high)\r\n",
  52.    "     Alt-H     Hang up the phone by dropping DTR.\r\n",
  53.    "     Alt-L     Start or stop logging of session to a file\r\n",
  54.    "     Alt-B     Set BT's baud rate to next higher value (19200 goes to 300)\r\n",
  55.    "     Alt-D     Instruct BT to dial a system.\r\n",
  56.    "     Alt-P     Use the other com port now (COM1 <-> COM2)\r\n",
  57.    "     PgUp      Send a file to Opus (UPLOAD)\r\n",
  58.    "     PgDn      Receive a file from Opus (DOWNLOAD)\r\n",
  59.    "\r\nPress a key to continue...",
  60.    NULL
  61. };
  62.  
  63. static char *uhelp[] = {
  64.    "\033[H\033[2J",
  65.    "You now have BinkleyTerm in UNATTENDED MAILER mode.\r\n",
  66.    "In UNATTENDED MAILER mode the following special keys are enabled:\r\n\r\n",
  67.    "     Alt-F10   Display this help screen.\r\n",
  68.    "     F1..F10   Exit to DOS with errorlevel (10*n) (F1=10,etc)\r\n",
  69.    "     ESCape    Push to DOS (spawn COMMAND.COM)\r\n",
  70.    "     Alt-M     Manually POLL a node\r\n",
  71.    "     Alt-Q     Quit the current event\r\n",
  72.    "     Alt-R     Re-start mail events as though none have previously executed\r\n",
  73.    "     Alt-T     Shift into DUMB TERMINAL mode.\r\n",
  74.    "     C         Make the next call (if any) immediately\r\n",
  75.    "     Ctl-C     Exit from BT with ERRORLEVEL 1\r\n",
  76.    "     Alt-X     Exit from BT with ERRORLEVEL 1\r\n",
  77.    NULL
  78. };
  79.  
  80. main_help()
  81. {
  82.    int i;
  83.  
  84.    for (i = 0; mhelp[i] != NULL; i++)
  85.       scr_printf (mhelp[i]);
  86.  
  87.    FOSSIL_CHAR();
  88.    scr_printf ("\r\n");
  89. }
  90.  
  91. mailer_help()
  92. {
  93.    int i;
  94.  
  95.    for (i = 0; uhelp[i] != NULL; i++)
  96.       scr_printf (uhelp[i]);
  97.  
  98.    if (BBSreader != NULL)
  99.       {
  100.       scr_printf("     Alt-E     Execute '");
  101.       scr_printf(BBSreader);
  102.       scr_printf("' as message editor\r\n");
  103.       }
  104.    
  105.    scr_printf ("\r\nPress a key to continue...");
  106.    FOSSIL_CHAR();
  107.    scr_printf ("\r\n");
  108. }
  109.